package com.hjq.fcloud.other

import com.hjq.fcloud.bean.FileItemBean
import kotlin.collections.ArrayList
import kotlin.collections.LinkedHashMap

object AppFilesHelper {

    /**
     * 获取文件列表
     */
    fun getAllFiles(files: LinkedHashMap<String, ArrayList<FileItemBean>>?): ArrayList<FileItemBean>? {
        var retList = ArrayList<FileItemBean>()
        if (files != null) {
            val iterator: Iterator<ArrayList<FileItemBean>> = files.values.iterator()
            while (iterator.hasNext()) {
                var item = iterator.next()
                retList.addAll(item)
            }
        }
        return retList
    }


}